﻿using Basic.FlowRemoteModel;
using SqlSugar;

namespace Basic.FlowModel.DB
{
    /// <summary>
    /// 流程节点抄送
    /// </summary>
    [SugarTable("FlowNodeMsg")]
    public class DBFlowNodeMsg
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public long FlowId
        {
            get;
            set;
        }

        public long NodeId
        {
            get;
            set;
        }

        public FlowMsgType MsgType
        {
            get;
            set;
        }
        public FlowMsgReceiveRange ReceiveRange
        {
            get;
            set;
        }
        public long CompanyId
        {
            get;
            set;
        }
        public long? UnitId
        {
            get;
            set;
        }
        public long? DeptId
        {
            get;
            set;
        }
        [SugarColumn(IsJson = true)]
        public string[] TitleCode
        {
            get;
            set;
        }
        [SugarColumn(IsJson = true)]
        public string[] PostCode
        {
            get;
            set;
        }
        [SugarColumn(IsJson = true)]
        public long[] EmpId
        {
            get;
            set;
        }
        [SugarColumn(IsJson = true)]
        public long[] ToNodeId
        {
            get;
            set;
        }

        public long? TableId
        {
            get;
            set;
        }
        public long? ColId
        {
            get;
            set;
        }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }

        public string Show { get; set; }
    }
}
